package com.cn.jdia.dc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cn.jdia.dc.dao.BackupconfigMapper;
import com.cn.jdia.dc.model.Backupconfig;
import com.cn.jdia.dc.service.IBackupconfigService;

@Service("backupconfigService")
public class IBackupconfigServiceImpl implements IBackupconfigService{

	@Resource
	private BackupconfigMapper backupconfigMapper;
	
	@Override
	public int insertBackupConfig(Backupconfig backupConfig) {
		return this.backupconfigMapper.insertSelective(backupConfig);
	}

	@Override
	public List<Backupconfig> getAllBackupconfig() {
		return this.backupconfigMapper.selectAll();
	}

}
